package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="PeccancyAffair"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class PeccancyAffair implements Serializable {

    /** identifier field */
    private Integer affairId;

    /** nullable persistent field */
    private String affairName;

    /** nullable persistent field */
    private String peaceBreaker;

    /** nullable persistent field */
    private String comName;

    /** nullable persistent field */
    private String affairDate;

    /** nullable persistent field */
    private String affairCouse;

    /** nullable persistent field */
    private String disposeCircs;

    /** nullable persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public PeccancyAffair(String affairName, String peaceBreaker, String comName, String affairDate, String affairCouse, String disposeCircs, String userId, String latestDate, String remark) {
        this.affairName = affairName;
        this.peaceBreaker = peaceBreaker;
        this.comName = comName;
        this.affairDate = affairDate;
        this.affairCouse = affairCouse;
        this.disposeCircs = disposeCircs;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public PeccancyAffair() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="AffairId"
     *             unsaved-value="0"
     *         
     */
    public Integer getAffairId() {
        return this.affairId;
    }

    public void setAffairId(Integer affairId) {
        this.affairId = affairId;
    }

    /** 
     *            @hibernate.property
     *             column="AffairName"
     *             length="100"
     *         
     */
    public String getAffairName() {
        return this.affairName;
    }

    public void setAffairName(String affairName) {
        this.affairName = affairName;
    }

    /** 
     *            @hibernate.property
     *             column="PeaceBreaker"
     *             length="20"
     *         
     */
    public String getPeaceBreaker() {
        return this.peaceBreaker;
    }

    public void setPeaceBreaker(String peaceBreaker) {
        this.peaceBreaker = peaceBreaker;
    }

    /** 
     *            @hibernate.property
     *             column="ComName"
     *             length="100"
     *         
     */
    public String getComName() {
        return this.comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    /** 
     *            @hibernate.property
     *             column="AffairDate"
     *             length="23"
     *         
     */
    public String getAffairDate() {
        return this.affairDate;
    }

    public void setAffairDate(String affairDate) {
        this.affairDate = affairDate;
    }

    /** 
     *            @hibernate.property
     *             column="AffairCouse"
     *             length="2147483647"
     *         
     */
    public String getAffairCouse() {
        return this.affairCouse;
    }

    public void setAffairCouse(String affairCouse) {
        this.affairCouse = affairCouse;
    }

    /** 
     *            @hibernate.property
     *             column="DisposeCircs"
     *             length="2147483647"
     *         
     */
    public String getDisposeCircs() {
        return this.disposeCircs;
    }

    public void setDisposeCircs(String disposeCircs) {
        this.disposeCircs = disposeCircs;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("affairId", getAffairId())
            .toString();
    }

}
